package com.eastedu.client.warehouse;

import com.eastedu.client.warehouse.model.SearchConditionRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.Map;

/**
 * @author 袁松明
 */
@FeignClient(value = "warehouse", contextId = "WarehouseSimilarResourceSearchClient", path = "/warehouse")
public interface SimilarResourceSearchClient {
    /**
     * 匹配知识点
     *
     * @param vo 请求参数
     * @return 知识点列表
     */
    @PostMapping(value = "/api/search?version=1.0")
    Map<String, Object> match(@SpringQueryMap SearchConditionRequest vo);
}
